package la.foton.atividade.entity;

import java.io.Serializable;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;


/**
 * The persistent class for the GRUPONEGOCIAL database table.
 * 
 */
@Entity
@NamedQuery(name = "GrupoNegocial.findAll", query = "SELECT g FROM GrupoNegocial g")
public class GrupoNegocial implements Serializable {
	private static final long serialVersionUID = 1L;

	@Column(name="\"descriao\"")
	private String descriao;

	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="\"id\"")
	private Integer id;

	//bi-directional many-to-one association to Projeto
   @ManyToOne
   @JoinColumn(name = "\"id_projeto\"", referencedColumnName = "ID")
	private Projeto projeto;

	//bi-directional many-to-one association to Solicitacao
	@ManyToOne
	@JoinColumn(name="\"id_solicitacao\"", referencedColumnName="ID")
	private Solicitacao solicitacao;

	//bi-directional many-to-one association to Casodeuso
	@ManyToOne
	@JoinColumn(name="\"id_casodeuso\"", referencedColumnName="ID")
   private CasoDeUso casodeUso;

	public GrupoNegocial() {
	}

	public String getDescriao() {
		return this.descriao;
	}

	public void setDescriao(String descriao) {
		this.descriao = descriao;
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Projeto getProjeto() {
		return this.projeto;
	}

	public void setProjeto(Projeto projeto) {
		this.projeto = projeto;
	}

	public Solicitacao getSolicitacao() {
		return this.solicitacao;
	}

	public void setSolicitacao(Solicitacao solicitacao) {
		this.solicitacao = solicitacao;
	}

   public CasoDeUso getCasodeuso()
   {
      return this.casodeUso;
	}

   public void setCasoDeUso(CasoDeUso casodeuso)
   {
      this.casodeUso = casodeuso;
	}

}